#include<learning.h>

int main(int argc,char **argv)
{
	int log1 = open("log1",O_RDWR);
	RET_CHECK(log1,-1,"open");
	int log2 = open("log2",O_RDWR);
	RET_CHECK(log2,-1,"open");
	dup2(log1,1);
	dup2(log2,2);
	printf("this is stdout\n");
	fprintf(stderr,"this is stderr\n");
	return 0;
}
